package com.linkivr.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.linkivr.dao.*;
import com.linkivr.model.*;
import com.linkivr.service.*;

@Component("groupService")
@Transactional
public class GroupServiceImpl implements GroupService {
	private GroupDao groupDao;

	public GroupDao getDao() {
		return groupDao;
	}

	@Resource
	public void setDao(GroupDao groupDao) {
		this.groupDao = groupDao;
	}

	public void add(T_group tabObj) {
		groupDao.add(tabObj);
	}

	public int delete(int sysid) {
		

		return groupDao.delete(sysid);
	}

	public void update(T_group tabObj) {
		groupDao.update(tabObj);
	}

	public int queryCount() {
		return groupDao.queryCount();
	}

	public T_group query(int id) {

		return groupDao.query(id);
	}

	public List<T_group> queryAll() {
		
		return groupDao.queryAll();
	}

	public List<T_group> queryAll(int start, int limit) {
		return groupDao.queryAll(start, limit);
	}

}
